package com.service;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.SqlSession;

import com.dao.User_logDao;
import com.util.MybatisSessionFactory;

public class User_logService {
	SqlSession session = MybatisSessionFactory.getSqlSession();
	User_logDao dao = session.getMapper(User_logDao.class);

	// 记录用户操作
	public void add_log(@Param("arc_id") String arc_id,
			@Param("user_id") String user_id,
			@Param("operation") String operation) {
		dao.add_log(arc_id, user_id, operation);
		session.commit();
	}
}
